﻿Element.prototype.SetSelection = function SetSelection(start, end)
{
	if (this.setSelectionRange != null)
	{
		this.setSelectionRange(start, end);
		return;
	}
	// assumed IE
	var range = this.createTextRange();
	range.collapse(true);
	range.moveStart("character", start);
	range.moveEnd("character", end - start);
	range.select();
};
